package com.rc.util;

import lombok.AllArgsConstructor;
import lombok.Getter;

public enum HttpCode {
    SUCCESS(200,"成功"),
    SERVICE_ERROR(500,"服务器异常"),
    DB_ERROR(500,"数据库异常");
    private int code;
    private String msg;

    HttpCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
